package com.mrs.controller;

import com.mrs.common.ResponseResult;
import com.mrs.dto.ArticleDto;
import com.mrs.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description: ArticleController
 * date: 2022/9/12 9:17
 * author: MR.孙
 */
@RestController
@RequestMapping("/content/article")
public class ArticleController {

    @Autowired
    private ArticleService articleService;

    @PostMapping
    public ResponseResult addArticle(@RequestBody ArticleDto articleDto ){
        return articleService.addArticle(articleDto);
    }

}
